<?php
$arr=array();
$arr["openid"]=$_GET["openid"];
$arr["openkey"]=$_GET["openkey"];
$arr["appid"]=$_GET["appid"];
$arr["payid"]=$_GET["payid"];
$arr["appkey"]=$_GET["appkey"];
$arr["appname"]=$_GET["appname"];
$arr["ts"]=$_GET["ts"];
$arr["device"]=$_GET["device"];
$arr["payitem"]=$_GET["payitem"];
$arr["appmode"]=$_GET["appmode"];;
$arr["goodsmeta"]=$_GET["goodsmeta"];
$arr["goodsurl"]=$_GET["goodsurl"];
$arr["amt"]=$_GET["amt"];
//$arr["clientip"]=GetIP();
$arr["sandbox"]=$_GET["sandbox"];
$arr["sig"]=$_GET["sig"];
$arr["goodsmeta"]=base64_decode($arr["goodsmeta"]);

?>

<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8" />
<body>
<table>



<?php

$sig_param=array("amt","appid","appmode","appname","openid","openkey","payitem","ts");
$sig_str="";
foreach($sig_param as $value)
{
	$sig_str=$sig_str.$value.$arr[$value];
}
$sig_str=$sig_str.$arr["appkey"];
$arr["sigstr"]=$sig_str;
$arr["newsig"]=md5($sig_str);
foreach($arr as $key=>$value)
{
	echo("<tr>");
	echo("<td>".$key."</td><td>".$value."</td>");
	echo("</tr>");
}
echo("<tr><td>newts</td><td>".time()."</td></tr>");
echo("<tr><td>time</td><td>".((time()-$arr["ts"])/60)."</td></tr>");
echo("");
?> 
</table></body></html>
